package com.woniuxy.pojo;

public class ResponseEntity<T> {
        int code;
        String message;
        T data;
        public static final ResponseEntity SUCCESSFUL = new ResponseEntity(200,"执行成功",null);
        public static final ResponseEntity FAIL = new ResponseEntity(500,"执行失败",null);
        public ResponseEntity() {
        }

        public ResponseEntity(int code, String message, T data) {
            this.code = code;
            this.message = message;
            this.data = data;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public T getData() {
            return data;
        }

        public void setData(T data) {
            this.data = data;
        }

}
